gtkplacesview: remove dead code
authorCarlos Soriano <csoriano@gnome.org>
Wed, 14 Oct 2015 19:47:39 +0000 (21:47 +0200)
committerCarlos Soriano <csoriano@gnome.org>
Thu, 15 Oct 2015 17:16:56 +0000 (19:16 +0200)
This is checked on add_volume inside the loop.

https://bugzilla.gnome.org/show_bug.cgi?id=756589

gtk/gtkplacesview.c

index 00b306803b53aeebc71f2de8e85ed8312a4aa9d8..1335b4d23994b95932a3226fee30a50a83b8915d 100644 (file)
@@ -786,10 +786,6 @@ add_drive (GtkPlacesView *view,
   GList *volumes;
   GList *l;
 
-  /* Removable devices won't appear here */
-  if (g_drive_can_eject (drive))
-    return;
-
   volumes = g_drive_get_volumes (drive);
 
   for (l = volumes; l != NULL; l = l->next)